package com.apply.config.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author tianp
 */
public class TokenUtils {
    public static String getLogin(HttpServletRequest request) {
        String token = request.getHeader("sid");
        if (token == null) {
            token = CookieUtils.getValueFromRequest(request, "sid");
        }
        return token;
    }
}
